#include <iostream>
using namespace std;

void BubbleSort(int *in, int inlen) {
  for (int i = 0; i < inlen; ++i) {
    for (int j = 0; j < inlen - i - 1; ++j) {
      if (in[j] > in[j + 1]) {
        int temp = in[j];
        in[j] = in[j + 1];
        in[j + 1] = temp;
      }
    }
  }
}

int main() {
  int a[] = {6, 5, 4, 3, 2, 1};
  BubbleSort(a, 6);
  int v = 0;
}
